using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Pay.Data {
    public partial class ShippingPositionMap
       : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<ShippingPosition>
    {
        public ShippingPositionMap()
        {
            // table
            ToTable("mc_ShippingPosition", "dbo");

            // keys
            HasKey(t => t.Id);

            // Properties
            Property(t => t.Id)
                .HasColumnName("Id")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
                .IsRequired();
            Property(t => t.MerchantId)
                 .HasColumnName("MerchantId")
                 .IsRequired();
            Property(t => t.ShopName)
                .HasColumnName("ShopName")
                .IsRequired();
            Property(t => t.RegionId)
                .HasColumnName("RegionId")
                .IsRequired();
            Property(t => t.Address)
                .HasColumnName("Address")
                .IsRequired();
            Property(t => t.Name)
                .HasColumnName("Name");
            Property(t => t.Phone)
               .HasColumnName("Phone");
            // Relationships
        }
    }
}
